package com.hushao.aimi.service;


import com.hushao.aimi.common.ServerResponse;
import com.hushao.aimi.vo.UserVo;


/**
 * @author 胡少
 */
public interface UserService {


    /**
     * 获取个人信息
     * @param username
     * @return
     * @throws Exception
     */
    ServerResponse getUserInfo(String username)throws Exception;

    /**
     * 注册
     * @param user
     * @return
     * @throws Exception
     */
    ServerResponse register(UserVo user) throws Exception;

    ServerResponse valid(String username, String phone);
}
